package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * AspectDataType generated by hbm2java
 */
@Entity
@Table(name="ASPECT_DATA_TYPE"
    ,schema="SANKAR"
)
public class AspectDataType  implements java.io.Serializable {


     private Long dataTypeId;
     private Date changedDate;
     private String dataType;
     private Set<Aspect> aspects = new HashSet(0);

    public AspectDataType() {
    }

	
    public AspectDataType(Long dataTypeId) {
        this.dataTypeId = dataTypeId;
    }
    public AspectDataType(Long dataTypeId, Date changedDate, String dataType, Set aspects) {
       this.dataTypeId = dataTypeId;
       this.changedDate = changedDate;
       this.dataType = dataType;
       this.aspects = aspects;
    }
   
     @Id 
     @GeneratedValue(strategy= GenerationType.AUTO)
    @Column(name="DATA_TYPE_ID", unique=true, nullable=false, scale=0)
    public Long getDataTypeId() {
        return this.dataTypeId;
    }
    
    public void setDataTypeId(Long dataTypeId) {
        this.dataTypeId = dataTypeId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CHANGED_DATE", length=7)
    public Date getChangedDate() {
        return this.changedDate;
    }
    
    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }
    
    @Column(name="DATA_TYPE")
    public String getDataType() {
        return this.dataType;
    }
    
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="aspectDataType")
    public Set<Aspect> getAspects() {
        return this.aspects;
    }
    
    public void setAspects(Set<Aspect> aspects) {
        this.aspects = aspects;
    }




}


